﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MixScriptWeb.Accounting.ReportFinnance
{
    public partial class frmCashFlow : cCommonWeb, IMIxCommon // System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                LoadData();
        }
        private void LoadData()
        {
            FillDropDownList(ddlCurrency, "mst_currency", "currency", "currency", true);

            for (int i = 0; i < ddlPeriod.Items.Count; i++)
            {
                ddlPeriod.Items[i].Text = ddlPeriod.Items[i].Text + ' ' + (DateTime.Now.Year).ToString();
            }
        }


        public bool isvalid()
        {
            return true;
        }
        protected void btnProcess_Click(object sender, EventArgs e)
        {
            Session["Period"] = ddlPeriod.SelectedItem.Text;
            Session["Cur"] = ddlCurrency.SelectedItem.Text;

            ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW",
                    "window.open( '/Accounting/ReportFinnance/CashFlow_Rpt.aspx', null, '' );", true);

        }
    }
}